from setuptools import setup
import os
package_name = 'spawn_model_pkg'

setup(
    name=package_name,
    version='0.0.0',
    packages=[package_name],
    data_files=[
        ('share/ament_index/resource_index/packages',
            ['resource/' + package_name]),
        ('share/' + package_name, ['package.xml']),
        # 添加模型文件安装路径
        (os.path.join('share', package_name, 'models'), 
        ['models/model.sdf']),
    ],
    install_requires=['setuptools'],
    zip_safe=True,
    maintainer='Your Name',
    maintainer_email='you@email.com',
    description='动态生成Gazebo模型的功能包',
    license='Apache-2.0',
    tests_require=['pytest'],
    entry_points={
        'console_scripts': [
            'spawn_model = spawn_model_pkg.spawn_model:main',
        ],
    },
)
